set locale encoding after fdTohandle
authorJoey Hess <joeyh@joeyh.name>
Tue, 16 Sep 2025 01:33:10 +0000 (21:33 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 16 Sep 2025 01:35:38 +0000 (21:35 -0400)
commit06a813ad4483a40b98199a0e4adfa2f4b11d6dcf
treea9d2e3f43c515f6afee7c935396a24f3c49276af
parent1e847fd1af173e5b80280a9ab87e486e4231ab95
set locale encoding after fdTohandle

fdToHandle does not set the usual system locale encoding,
so when the Handle is used for any String IO, it needs to be done
manually for correctness.

I don't know if this fixes any bugs. It might eg, fix a bug with
multicast receive of a file.

Sponsored-by: Leon Schuermann
Annex/Multicast.hs
Assistant.hs
Utility/LockFile/PidLock.hs
Utility/Process/Transcript.hs